package com.netty.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.netty.NettyClient;
import com.netty.NettyData;

@Controller
@RequestMapping("/")
public class IndexController {

	@RequestMapping("/")
	public String index(Model model) {
		List<NettyClient> clients = NettyData.clients;
		model.addAttribute("clients", clients);
		return "index";
	}
}
